import 'dart:io';

import 'package:flutter_screenutil/flutter_screenutil.dart';

final kPlatformPC = Platform.isMacOS || Platform.isWindows || Platform.isLinux;
final kPlatformPhone = Platform.isIOS || Platform.isAndroid;

///定义app底部高度
double get appBottomBarHeight =>
    (kPlatformPC
        ? 60
        : Platform.isIOS
            ? 49
            : 60) +
    ((ScreenUtil().bottomBarHeight == 0 && Platform.isIOS)
        ? 10
        : ScreenUtil().bottomBarHeight);

///定义主页tab页面到底部的距离
double get appHomeBobyBottomPadding => appBottomBarHeight - 12;
